import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_demo/widget/cards.dart';
import 'package:flutter_demo/widget/screen_load.dart';

class PersonRecordScreen extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _PersonRecordScreenState();
}

class _PersonRecordScreenState
    extends State<PersonRecordScreen> with ScreenLoadMixin {

  Map<String, String> data = {
    '操作时间' : '2022年5月12日 20:10',
    '操作' : '2022年5月12日 20:10',
  };

  @override
  void initState() {
    super.initState();
    Timer(const Duration(milliseconds: 1000), () => loadFinish());
  }

  @override
  void loadFinish() {
    // TODO: implement loadFinish
    super.loadFinish();
  }

  @override
  Widget buildChild(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('公司信息'),
      ),
      body: Scrollbar(
        child: SingleChildScrollView(
          child: Container(
            alignment: Alignment.center,
            margin: EdgeInsets.symmetric(vertical: 32),
            child: DataWithResourceCard(
              width: 610,
              params: data,
            ),
          ),
        ),
      ),
    );
  }
}